package io.io2;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;

public class BRDemo {
    public static void main(String[] args) throws IOException{
        FileInputStream fileInputStream = new FileInputStream("o.txt");
        InputStreamReader inputStreamReader = new InputStreamReader(fileInputStream, StandardCharsets.UTF_8);
        BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
        String line;
        if ((line=bufferedReader.readLine())!=null){
            System.out.println(line);
//            System.out.print(line);
        }

bufferedReader.close();

    }
}
